<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<!--{$page_charset}-->" />
<title>管理员登录-[<!--{$config.sitename}-->]</title>
<meta name="author" content="<!--{$copyright_author}-->" />
<!--{if $version == 'fuxing'}-->
 <link href="xycms/css/fuxing.css" rel="stylesheet" type="text/css" />
   <!--{else}-->
  <link href="xycms/css/admin.css" rel="stylesheet" type="text/css" />
<!--{/if}-->
<link href="xycms/css/<!--{$style}-->.css" rel="stylesheet" type="text/css" />
<link href="xycms/css/animate.css" rel="stylesheet" type="text/css" />
<script type='text/javascript' src='js/jquery-1.8.3.min.js'></script>
</head>
<div class="login-error"><img src="<!--{$urlpath}-->dm/xycms/images/notice.png" />密码连续累计出错超过5次，90秒后才能重新登陆！</div>   
<body id="login">
<div id="login-wrap">
  <div class="login-main">
  <!--{if $version == 'fuxing'}-->
  <h1>福星平台网站管理系统</h1>
  <!--{else}-->
  <h1>祥云平台网站管理系统</h1>
  <!--{/if}-->
    
	<div class="login-cont">
	  <form id="loginFrm" action="login.php" method="post" onsubmit="return checkform();">
	  <input type="hidden" name="action" value="loginpost" />
	  <div class="account1">
	    <label>登录帐号：</label>
		<input class="input-txt" id="username" name="username" type="text" />
	  </div>
	  <div class="account1">
	    <label for="">登录密码：</label>
		<input class="input-txt" id="password" name="password" type="password" />
	  </div>
	  <div class="account1">
	    <label for="">验 证 码：</label>
		<input class="input-txt wyy" id="checkcode" name="checkcode" type="text" autocomplete="off" />
        <img id="checkCodeImg" onclick="refreshCc()" src="../data/include/imagecode.php?act=verifycode" width="100" height="36" />	
	  </div>
	  <input class="admin_login" name=""  type="submit" value="登 录" />
	  </form>
	</div>
  	<div class="copyright">
		Copyright &copy;2014  版本：<!--{$vsion}-->  <a href="../" target="_blank">返回首页</a>
	</div>
  </div>
</div>

<script language="javascript" type="text/javascript">
var notice = '<!--{$notice}-->';
if(notice == 'error'){
	$(".login-error").css('display','block');
	$(".login-error").addClass('animated fadeInDownBig');
	setTimeout(function(){
		$(".login-error").removeClass('animated fadeInDownBig').addClass('animated bounceOutLeft');
	},4000);
}
function refreshCc() {
	var ccImg = document.getElementById("checkCodeImg");
	if (ccImg) {
		ccImg.src = '../data/include/imagecode.php?act=verifycode&random='+Math.random();
	}
}
function checkform(){
    if($("#username").val()==""){
	    alert("登录帐号不能为空");
		$("#username").focus();
		return false;
	}
    if($("#password").val()==""){
	    alert("登录密码不能为空");
		$("#password").focus();
		return false;
	}
    if($("#checkcode").val()==""){
	    alert("验证码不能为空");
		$("#checkcode").focus();
		return false;
	}
	return true;
}
</script>

</body>
</html>

